-- GENERATED SPELL FOR [Bony Construct] --


function spell0_16167(pUnit, Event) --@Brutal Swipe,n/a--
pUnit:FullCastSpellOnTarget(55319,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16167', 586, 1)
end

function spell1_16167(pUnit, Event) --@Brutal Swipe,n/a--
pUnit:FullCastSpellOnTarget(55324,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16167', 668, 1)
end

function Sorts_16167(pUnit, Event)
local choix_sorts_16167 = math.random(0, 1)
if choix_sorts_16167 == 0 then
pUnit:RegisterEvent('spell0_16167', 1, 1)
end
if choix_sorts_16167 == 1 then
pUnit:RegisterEvent('spell1_16167', 1, 1)
end
end

function mob16167_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16167', math.random(1500, 3000), 1)
end

function mob16167_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16167_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16167_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16167, 1, 'mob16167_Action')
RegisterUnitEvent(16167, 2, 'mob16167_Leave')
RegisterUnitEvent(16167, 3, 'mob16167_Kill')
RegisterUnitEvent(16167, 4, 'mob16167_Die')
